3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D provides routines for creating and managing UNIX storage objects.
You need to link your application with the standard I/O library to use these functions.
You can use the Q3UnixStorage_New function to create a new UNIX storage object.
TQ3StorageObject Q3UnixStorage_New (FILE *stdFile);
The Q3UnixStorage_New function returns, as its function result, a new UNIX storage object associated with the file specified by the stdFile parameter. The specified file is assumed to be open, and it must remain open as long as you use the returned storage object. In addition, you are responsible for closing the file once the associated storage object has been closed or disposed of. If Q3UnixStorage_New cannot create a new storage object, it returns the value NULL .
You can use the Q3UnixStorage_Get function to get information about a UNIX storage object.
TQ3Status Q3UnixStorage_Get (TQ3StorageObject storage, FILE **stdFile);
You can use the Q3UnixStorage_Set function to set information about a UNIX storage object.
TQ3Status Q3UnixStorage_Set (TQ3StorageObject storage, FILE *stdFile);
You can use the Q3UnixStorage_GetType function to get the type of a UNIX storage object.
TQ3ObjectType Q3UnixStorage_GetType (TQ3StorageObject storage);
The Q3UnixStorage_GetType function returns, as its function result, the type of the UNIX storage object specified by the storage parameter. The types of UNIX storage objects currently supported by QuickDraw 3D are defined by this constant:
kQ3UnixStorageTypePath
If the specified memory storage object is invalid or is not of this type, Q3UnixStorage_GetType returns the value kQ3ObjectTypeInvalid .
Previous | QD3D Book | Overview | Chapter Contents | Next |